<div class="main-form">
    <form name="form1" id="form1" method="post" action="<?php echo $this->baseUrl ?>/class/add">
        <p>
        	<label for="name">班级名称：</label>
            <input name="name" id="name" type="text" class="input-text" />
            <span id="TipTitle" class="Show"></span>
        </p>
        <p>
        	<label for="start_time">开班日期：</label>
            <input id="start_time" name="start_time" type="text" class="input-text" value="<?php echo date('Y-m-d', time()); ?>" />
            <span id="TipStartTime" class="Show"></span>
        </p>
        <p>
        	<label for="end_time">结束日期：</label>
            <input id="end_time" name="end_time" type="text" class="input-text" value="<?php echo date('Y-m-d', time()); ?>" />
            <span id="TipEndTime" class="Show"></span>
        </p>
        <p><label for="location">开班地点：</label><input name="location" type="text" class="input-text" /></p>
        <p><label for="is_complete">是否完成：</label><select name="is_complete" class="input-text"><option value="0">未完成</option><option value="1">完成</option></select>
        <p><label for="linkman">联系人：</label><input name="linkman" type="text" class="input-text" /></p>
        <p>
        	<label for="category">班级类型：</label>
        	<select name="category" class="input-text" id="pid_select">
            	<?php foreach ($this->conf->projectType as $key => $val): ?>
                    <option value="<?php echo $key ?>"><?php echo $val; ?></option>
                <?php endforeach; ?>
            </select>
        </p>
        <p>
        	<label for="income">班级收益：</label>
            <input name="income" type="text" class="input-text" />
        </p>
        <p>
        	<label for="summary">班级简介：</label> 
            <textarea name="summary" class="input-textarea" ></textarea>
        </p>
        <p><label>&nbsp;</label><input type="submit" class="button" style="margin-left:0" value="提 交" /></p>
    </form>
</div>
<div class="main-form">
    <form action="<?php echo $this->baseUrl;?>/excel/upload" method="post" enctype="multipart/form-data" />
        <input type="hidden" name="model" value="class" id="model" />
        <p>	
            <label>&nbsp;</label>
            <input type="file" name="files" />
            <input type="submit" class="button" value="批量上传" />
        </p>
    </form>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$(".button").click(function(){
		var type = $(this).siblings("label").attr("class");
		$("#hover_type").val(type);
	});
});
</script>